package com.masq.common.enums;

import com.masq.common.BaseResult;

/**
 * 错误响应枚举
 * @author masq
 * @since 2025-06-29
 */
public enum ErrorResult implements BaseResult {

    SERVICE_ERROR(100000, "服务器发生异常"),

    AUTH_USER_NOT_EXIST(100001, "用户不存在"),

    AUTH_USER_NOT_LOGIN(100002, "用户未登录"),

    AUTH_TOKEN_ERROR(100003, "用户token错误"),

    AUTH_TOKEN_EXPIRED(100004, "用户token已过期"),

    AUTH_USER_FORBIDDEN(100005, "用户被禁用"),

    AUTH_USER_PASSWORD_ERROR(100006, "用户账号或密码错误"),

    AUTH_USER_NOT_ACTIVE(100007, "用户未激活"),

    AUTH_USER_NO_PERMISSION(100008, "无权限访问"),



    ;


    private final Integer code;

    private final String message;


    ErrorResult(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    // 1. 通用
}
